<%--
  Created by IntelliJ IDEA.
  User: Liu
  Date: 2023/8/24
  Time: 11:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <base href="${ctx}/">
    <title>订单新增</title>
    <script src="assets/lib/jQuery/jquery-3.7.0.min.js"></script>
    <script src="assets/lib/laydate/laydate.js"></script>
    <script src="assets/lib/layer/layer.js"></script>
    <script>
        const ctx = "${ctx}/";
        const error = "${error}"
    </script>
    <script src="assets/JS/order/add.js"></script>
    <link rel="stylesheet" href="assets/CSS/order/add.css">
</head>
<body>
<h1>新增订单信息</h1>
<div>
    <form id="orderForm" action="order/add" method="post">
        <div>
            <label for="orderId">订单编号:</label>
            <input type="text" name="orderId" id="orderId" placeholder="请输入订单编号" value="${order.orderId}">
        </div>
        <div>
            <label for="customerId">客户编号:</label>
            <input type="text" name="customerId" id="customerId" placeholder="请输入客户编号" value="${order.customerId}">
        </div>
        <div>
            <label for="commodityId">商品编号:</label>
            <input type="text" name="commodityId" id="commodityId" placeholder="请输入商品编号" value="${order.commodityId}">
        </div>
        <div>
            <label for="quantity">下单数量:</label>
            <input type="text" name="quantity" id="quantity" placeholder="请输入下单数量" value="${order.quantity}">
        </div>
        <div>
            <label for="customerPhone">客户电话:</label>
            <input type="text" name="customerPhone" id="customerPhone" placeholder="请输入客户电话" value="${order.customerPhone}">
        </div>
        <div>
            <label for="orderTime">下单时间:</label>
            <input type="text" name="orderTime" id="orderTime" placeholder="请选择下单时间" value="${order.orderTime}" readonly>
        </div>
        <div>
            <label for="description">备注:</label>
            <textarea  name="description" id="description" placeholder="请输入备注" value="${order.description}"></textarea>
        </div>
        <div>
            <label></label>
            <button type="submit" id="confirm">确认</button>
            <button type="reset" id="reset">重置</button>
        </div>
    </form>
</div>
</body>
</html>
